import { createVNode, render as vueRender } from "vue";
import b from "./B.vue"
import { Modal as AntModal } from "ant-design-vue";
/**
 * 
 * @param {*} content 
 * @param {*} props 
 * @param {*} config 本地配置
 * @returns 
 */
export default function modal(config,slot) {
    const metadata = Object.create({
      okText: "确定",
      cancelText: "取消",
      visible: true,
      ...config,
    });
    // let vm = createVNode(b, metadata,slot);
    let vm = createVNode(b, metadata,slot);
    return vm
    // const div = document.querySelector(".fc");
    // document.body.appendChild(div);
    /** 渲染 */
    // vueRender(vm, div);
    // return {
    //   ..._contentVnode,
    // };
}